﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
using Core;

namespace MolesTestSample
{
    public class Program
    {
      
        static void Main(string[] args)
        {
            SPListItemCollection source = ProjectHelper.CreateCustomColumnsFromList();

            //pass Fields Internal names here as strings
            List<CustomConfigColumn> userPreferencesList = new List<CustomConfigColumn>()
            {
                new CustomConfigColumn() {ColumnName = "CustomerName"},
                new CustomConfigColumn() {ColumnName = "DepartmentTitle"},
                new CustomConfigColumn() {ColumnName = "BusinessPhone"},
                new CustomConfigColumn() {ColumnName = "EmailAddress"},
                 new CustomConfigColumn() {ColumnName = "Modified"}
            };


            List<CustomColumnDefinition> customColumnList = ProjectHelper.InitializeCustomColumnDefinition(userPreferencesList, source);

            ProjectHelper.PrintCustomColumnsDefinition(customColumnList);

            Console.ReadLine();
        }
        
    }
}
